package com.tony.guice.Common;

import com.google.inject.Inject;
import com.google.inject.Singleton;

import java.util.logging.Logger;

/**
 * @version V1.0  </br>
 * @ClassName ConsoleTransactionLog </br>
 * @Description TODO  </br>
 * @Author tonywang</br>
 * @DATE 2/28/2019 4:34 PM</br>
 */
@Singleton
public class ConsoleTransactionLog implements TransactionLog {
    private  final Logger mLogger;

    @Inject
    public ConsoleTransactionLog(Logger pLogger) {
        mLogger = pLogger;
    }
    public void logConnectException(Exception e) {
    /* the message is logged to the "ConsoleTransacitonLog" logger */
        mLogger.warning("Connect exception failed, " + e.getMessage());
    }
    @Override
    public void log() {

    }
}
